package cn.billho.popcache.core.codec;

import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.lang.reflect.Type;

@RequiredArgsConstructor
public class DefaultResultParser implements IResultParse {
    @NonNull
    ISerialize serialize;
    @Override
    public Object parse(String value, Type returnType, Class<?>... origins) {
        return serialize.deserialize(value, returnType, origins);
    }
}
